home *** CD-ROM | disk | FTP | other *** search
- #ifndef ODBCSHAREDLIBRARIES_H
- #define ODBCSHAREDLIBRARIES_H
-
- #ifndef WIN2MAC_H
- #include "win2mac.h"
- #endif
-
- #if PPCODBC
-
- #include "ODBCCFM.h"
-
- typedef const char * ODBCLibType;
- typedef char * ODBCLibId;
-
- struct ODBCLibResContext
- {
- short savedRefNum;
- short libResFile;
- };
- typedef struct ODBCLibResContext ODBCLibResContext;
-
-
- #ifdef __FRAGLOAD__
- enum { kInMem = 0, kOnDiskFlat = 1, kOnDiskSegmented = 2 }; // where
- #endif
-
- typedef void (* PPCMainPtr)( Handle hinst2init );
-
- #else
-
- #include "LibraryManager.h"
- #include "LibraryManagerUtilities.h"
- #include "ODBCASLM.h"
-
- typedef TFunctionSetID ODBCLibType;
- typedef TFunctionSetID ODBCLibId;
- typedef Ptr ODBCLibConnection;
- struct ODBCLibResContext
- {
- long savedRefNum;
- TLibraryFile * dllfile;
- };
- typedef struct ODBCLibResContext ODBCLibResContext;
-
- #endif
-
- OSErr ODBCLibNames( ODBCLibType libType, char* buffer, WORD bufferMax, WORD* bufferSize );
- OSErr ODBCGetLibId( ODBCLibType libType, char* libName, ODBCLibId* libId );
- void ODBCFreeLibId( ODBCLibId libId );
- OSErr ODBCLibUseRes( HMODULE dll, ODBCLibResContext* context );
- OSErr ODBCLibCloseRes( ODBCLibResContext* context );
- OSErr ODBCLibUseLocalRes( ODBCLibResContext* context );
- OSErr ODBCLibCloseLocalRes( ODBCLibResContext* context );
-
- #endif // ODBCSHAREDLIBRARIES_H